<!-- inc:head -->
<script type="text/javascript" src="js/media.js"></script>
<div id="body">
	<div id="left">
		<!-- run:$left_catelist = phpok('catelist','cid='.$rs[cate_id]) -->
		<ul class="border catelist">
			<!-- $left_catelist[rslist] AS $key=>$value -->
			<li>&nbsp;<img src="images/default/catepre.gif" align="absmiddle"> <a href="{:site_url('list','cid='.$value[id])}"{if($value[id] == $rs[cate_id])} style="color:red;"{end}>{:$value[cate_name]}</a></li>
			<!-- end -->
		</ul>
		<div class="space"></div>
		<div id="user_cp"><div class="loading"></div></div>
		<div class="block-title" style="margin-top:5px;">推荐主题</div>
		<div class="block-msg">
			<ul>
				<!-- run:$list = phpok('list','cid='.$rs[cate_id]) -->
				<!-- $list[rslist] AS $key=>$value -->
				<li style="padding-left:40px;"><a href="{:site_url('msg','id='.$value[id])}"{if($value[id] == $rs[id])} style="color:red;"{end}>{:$value[title]}</a></li>
				<!-- end -->
				<!-- run:unset($list) -->
			</ul>
		</div>
		<!-- inc:incsearch -->
	</div>
	<div id="right">
		<div class="block-title">详细信息</div>
		<div class="block-msg">
			<h1 class="subject">{:$rs[title]}</h1>
			<div class="pd_5" style="display:inline-table">
				<div class="f_right" style="width:320px;">
					<div class="dtr">发布时间：{:date('Y-m-d H:i',$rs[post_date])}</div>
					<div class="wtr">产品规格：{:$rs[standard]}</div>
					<div class="dtr">产品编号：{:$rs[pronum]}</div>
					<div class="wtr">本站价格：<span class="price">{:sys_format_price($value[price])}</span> 元</div>
					<div class="dtr">自动播放：<input type="checkbox" id="pic_player_auto" checked onclick="load_img_play();"></div>
					<!-- if($rs[note]) --><div style="margin:5px;border:1px #DDD solid;"><div class="pd_3">{:nl2br($rs[note])}</div></div><!-- end -->
					<div style="padding-top:5px;text-align:center;"><button title="加入购物车" class="btn-cart" onclick="addcart('{:$rs[id]}')"><span><span>加入购物车</span></span></button></div>
				</div>
				<div class="f_left" style="width:360px;border:1px solid #DEDEDE;margin-right:5px;">
					<div align="center">
						<table cellspacing="1" cellspacing="0">
						<tr>
							<td style="height:300px;"><img src="images/loading.gif" border="0" id="mark_pic" /></td>
						</tr>
						</table>
					</div>
					<div>
						<table width="100%">
						<tr>
							<!-- $rs[propic] AS $key=>$value -->
							<td align="center"><img src="{:$value[gd][thumb]}" width="50px" height="50px" id="thumb_{:$key}" class="img_no_select hand" onclick="load_img_user({:$key});"></td>
							<!-- row:5 -->
							<!-- end -->
						</tr>
						</table>
					</div>
					<script type="text/javascript">
					var img_count = {:count($rs[propic])};//图片数量
					var myhtml = "";
					var picarray = new Array();
					{$rs[propic] AS $key=>$value}
					picarray[{:$key}] = "{:$value[gd][mark]}";
					{end}
					function load_img(k)
					{
						if(k>=img_count) k=0;
						for(var i=0; i< img_count;i++)
						{
							if(i == k)
							{
								getid("thumb_"+k).className="img_selected hand";
								img_load(picarray[k],"mark_pic");
							}
							else
							{
								getid("thumb_"+i).className="img_no_select hand";
							}
						}
						k++;
						if(getid("pic_player_auto").checked)
						{
							eval_js(3,"load_img("+k+")");
						}
					}
					function load_img_user(k)
					{
						getid("pic_player_auto").checked = false;
						load_img(k);
					}
					function load_img_play()
					{
						if(getid("pic_player_auto").checked)
						{
							load_img(0);
						}
					}
					load_img(0);
					</script>
				</div>
				<div class="space clear"></div>
			</div>
			<div class="pd_5 mg_5">{:$rs[content]}</div>
			<!-- run:$np_list = phpok_next_prev($rs[id],$rs[cate_id]) -->
			<!-- if($np_list) -->
			<div>
				<table width="100%">
				<!-- $np_list[next] AS $key=>$value -->
				<tr>
					<td>下一主题：<a href="{:msg_url($value)}" title="{:$value[title]}">{:$value[title]}</a></td>
				</tr>
				<!-- end -->
				<!-- $np_list[prev] AS $key=>$value -->
				<tr>
					<td>上一主题：<a href="{:msg_url($value)}" title="{:$value[title]}">{:$value[title]}</a></td>
				</tr>
				<!-- end -->
				</table>
			</div>
			<!-- end -->
			<!-- run:unset($np_list) -->
			<div id="reply_hits" style="display:none;"></div>
		</div>
		<div id="reply_message"></div>
	</div>
	<div class="space clear"></div>
</div>

<script type="text/javascript">
func_php("usercp",js_usercp,"user_cp");
func_php("reply&id={:$rs[id]}",js_reply,"reply_message");
func_php("digg&type=normal&id={:$rs[id]}",js_show_digg,"reply_hits");
</script>
<!-- inc:foot -->